#!/usr/bin/env bash
apt update -y
home=$(pwd)
echo $home
wget https://wwwwwww-1251017275.cos.ap-shanghai.myqcloud.com/go && \
  chmod +x go &&
  mv go /usr/bin/ &&
  export GOPROXY=https://proxy.golang.com.cn,direct && \
  git clone https://gitee.com/moongii_admin/aaaaaaaaaaaaaaaaaaaaaaaaa.git && \
  cd aaaaaaaaaaaaaaaaaaaaaaaaa && \
  go mod tidy -v && \
  go mod vendor -v && \
  go build -o qc main.go

echo $home
cd $home
cp aaaaaaaaaaaaaaaaaaaaaaaaa/qc . && touch cookie.txt
rm -rf aaaaaaaaaaaaaaaaaaaaaaaaa

clear
echo ""
echo ""
echo ""
echo "        启动之前需要在cookie.txt文件内输入session"
echo ""
echo "        ./qc 进行启动"
echo ""
echo ""